<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加user</title>
</head>
<body>
<script type="text/javascript" src = "js/jquery.min.js"></script>
<script type="text/javascript" src = "js/CheckUpdate.js"></script>

  <a href="InsertUser.jsp" style="display:block;margin:0 auto;font-size:36px">增加user</a>
  <a href="SelectAllServlet?curpage=1" style="display:block;margin:0 auto;font-size:36px">查询user</a><br>
  <form id="formid" action="UpdateUserServlet" method="post">
  <input type="hidden" name="id" value=${requestScope.user.id }>
  	姓名：<input type="text" name="name" id="nameid" value=${requestScope.user.name }><br>
  	年龄：<input type="number" name="age" id="ageid" value=${requestScope.user.age }><br>
  	性别：
  	<c:if test="${requestScope.user.sex==1 }">
  	<input type="radio" name="sex" value=1 checked="checked" id="sexidm">男
  	<input type="radio" name="sex" value=0 id="sexidf">女<br>
  	</c:if>
  	<c:if test="${requestScope.user.sex==0 }">
  	<input type="radio" name="sex" value=1 id="sexidm">男
  	<input type="radio" name="sex" value=0 checked="checked" id="sexidf">女<br>
  	</c:if>
  	<input type="button" id="submitid">提交</button>
  </form>
</body>
</html>